package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Goods;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * @author :ttm
 * @description
 */


public interface GoodsService {


    Map<String, Object> getlistInventory(Integer page, Integer rows, String codeOrName, Integer goodsTypeId);
    //查询所有商品信息
    Map<String, Object> list(Integer page, Integer rows, String goodsName, Integer goodsTypeId);

    ServiceVO save(Goods goods);

    ServiceVO delete(Integer goodsId);
    //无库存商品展示
    Map<String, Object> getNoInventoryQuantity(Integer page, Integer rows, String nameOrCode);
    //有库存商品展示
    Map<String, Object> getHasInventoryQuantity(Integer page, Integer rows, String nameOrCode);
    //添加库存、修改数量或成本价
    ServiceVO saveStock(Integer goodsId, Integer inventoryQuantity, double purchasingPrice);
    //删除库存
    ServiceVO deleteStock(Integer goodsId);
    //库存警报
    Map<String, Object> listAlarm();

}
